<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit">
		<title>在岗人员管理</title>
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/layui/css/layui.css">
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/font-awesome.min.css">
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/common.css">
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/gloab.css" />
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/formTemplate.css" />
	</head>

	<body>
		<!-- 描述：tableTemplate模板 -->
		<div class="xbzx-form-list p-r">
			<!-- 描述：tableTemplate搜索区域 -->
			<div class="xbzx-search-form clearfix">
				<form id="page_for" class="layui-form  xbzx-form" action="/employee/index" method="post">
					<div class="form-group clearfix">
						<div class="form_item_left f-l">
							<div class="form_item_col">
								<div class="layui-form-item">
									<label class="layui-form-label">姓名 :</label>
									<div class="layui-input-inline">
										<input type="text" hidden name="page" value="${page }"/>
										<input type="text" name="name" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="${m.name}">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">手机号 :</label>
									<div class="layui-input-inline">
										<input type="text" name="telnumber" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="${m.name}">
									</div>
								</div>
							</div>
						</div>
						<div class="form_item_right f-r">
							<div class="search-button">
								<button class="layui-btn layui-btn-danger" type="submit" xbzx-data-type="check" id="check"><!-- <i class="layui-icon">&#xe615;</i> --><span>检索</span></button>
								<button class="layui-btn layui-btn-primary" type="button" xbzx-data-type="clear" id="clear" xbzx-data-type="clear"><!-- <i class="layui-icon">&#xe640;</i> --><span>清空</span></button>
							</div>
						</div>
						
					</div>
				</form>
			</div>
			<!-- 描述：tableTemplate常用按钮区域 -->
			<div class="xbzx-tool-btn">
				<blockquote class="layui-elem-quote clearfix">
					<div class="tool-btn-box">
							<a class="layui-btn layui-btn-normal" href="javascript:;" xbzx-data-type="add" data-url="/employee/add" data-rel="pedition_add" tab-title="新增"><i class="layui-icon">&#xe608;</i><span>添加</span></a>
						<div class="tool-group-left f-r">
							<a class="layui-btn layui-btn-primary" href="javascript:;" xbzx-data-type="edit" data-url="/employee/edit" data-rel="pedition_edit" tab-title="编辑"><i class="layui-icon">&#xe642;</i><span>编辑</span></a>
							<a class="layui-btn layui-btn-primary" href="javascript:;" xbzx-data-type="edit" data-url="/employee/detail" data-rel="pedition_detail" tab-title="详情"><i class="layui-icon">&#xe649;</i><span>查看</span></a>
							<a class="layui-btn layui-btn-primary" href="javascript:;" xbzx-data-type="delete" data-url="/employee/delete"  tab-title="删除"><i class="layui-icon">&#xe640;</i><span>删除</span></a>
						</div>
					</div>
				</blockquote>
			</div>
			<!-- 描述：tableTemplate表格区域 -->
			<div class="xbzx-table">
				<div class="layui-form">
					<table class="layui-table">
						<colgroup>
						<%-- <col width="1%">
							<col width="5%">
							<col width="9%">
							<col width="9%">
							<col width="9%">
							<col width="9%">
							<col width="9%">
							<col width="9%">
							<col wodth="10%">  --%>
						</colgroup>
						<thead>
							<tr>
								<!-- <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th> -->
								<th class="t-c">序号</th>
								<th>工号</th>
								<th>姓名</th>
								<th>系统用户名</th>
								<th>性别</th>
								<th>民族</th>
								<th>手机号</th>
								<th>出生日期</th>
								<th>所属部门</th>
								<th>职位</th>
								<th>状态</th>
								<th>入职日期</th>
								<th>薪资待遇</th>
								
						</thead>
						<tbody>
							<c:forEach items="${empList.getRecords()}" var="s"  varStatus="c">
								<tr data-id="${s.id}">
									<!-- <td><input xbzx-data-id="b" type="checkbox" name="" lay-skin="primary" lay-filter="choose"></td> -->
									<td>${c.count}</td>
									<td>${s.eid }</td>
									<td>${s.name }</td>
									<td>${s.userid }</td>
									<td>${s.sex }</td>
									<td>${s.minzu }</td>
									<td>${s.telnumber }</td>
									<td>${s.birthday }</td>
									<td>${s.departid }</td>
									<td>${s.zhiwei }</td>
									<td>${s.status }</td>
									<td>${s.rzsj }</td>
									<td>${s.salary }</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
			<!-- 描述：tableTemplate分页区域 -->
			<div class="xbzx-pagination p-f" data-page="${empList.getPages()}" id="page"></div>
		</div>
		<script src="/resource/layui/layui.js" charset="utf-8" type="text/javascript"></script>
		<script src="/resource/js/jquery/jquery-1.9.1.js" charset="utf-8" type="text/javascript"></script>

		<!-- 描述:单独iframeJS模块  -->
		<script type="text/javascript">
			window.onload = function() {
				layui.config({
					base: '/resource/js/xbzx_modules/' //xbzx模块目录
				}).use('xbzx-cms-common'); //加载公共Js文件入口

				layui.config({
					base: '/resource/js/xbzx_modules/' //xbzx模块目录
				}).use('xbzx-cms-form'); //加载formJs文件入口 
			}
			
		</script>
	</body>

</html>
